<?php
session_start();
include_once 'logging.inc.php';
if( is_logged() ) {
  echo '{"result":true,"info":"Already logged"}';
} else {
  if( login() ) { // FIXME: add password
    echo '{"result":true}';
  } else {
    echo '{"result":false,"info":"Unable to login"}';
  }
}
?>

